//
//  RouterBridgeManager.m
//  Loan
//
//  Created by WuShiHai on 17/04/2017.
//  Copyright © 2017 Shanghai Mengdian Information Technology Co., Ltd. All rights reserved.
//

#import "WDStatisticsModule.h"
#import <WDReact/WDReact.h>
#import <WDStatistics/WDStatistics.h>

@implementation WDStatisticsModule

RCT_EXPORT_MODULE(statistics);

RCT_EXPORT_METHOD(track:(NSDictionary *)paramMap){
    [WDStatistics gotoStatic:paramMap];
}

RCT_EXPORT_METHOD(onPageStart:(NSString *)pageName){
    [WDStatistics beginLogPageView:pageName];
}

RCT_EXPORT_METHOD(onPageEnd:(NSString *)pageName){
    [WDStatistics endLogPageView:pageName];
}

@end
